package com.poetry.vup.common.result.page;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;
import java.util.Map;

/**
 * 分页数据封装类
 *
 * @Author mysland
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
public class BasePage<T> {

    //分页序号
    private Integer pageNum;

    //分页大小
    private Integer pageSize;

    //总页数
    private Integer totalPage;

    //总记录数
    private Long total;

    //分页数据列表
    private List<T> list;

    public BasePage() {
        this.pageNum = 0;
        this.pageSize = 0;
        this.totalPage = 0;
        this.total = 0L;
    }
}
